<!DOCTYPE html>
<html class="ui-page-login">

<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>参加报名</title>
    <link href="../../css/mui.css" rel="stylesheet"/>
    <link href="../../css/reset.css" rel="stylesheet"/>
    <link rel="stylesheet" href="../../css/iconfont.css" />
    <link rel="stylesheet" href="../../css/dashi.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="full-screen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta name="format-detection" content="telephone=no"/>
    <meta name="format-detection" content="address=no">
    <script src="../../js/jquery.min.js"></script>
    <script type="text/javascript">
        var docEl = document.documentElement;
        var clientWidth = docEl.clientWidth;
        docEl.style.fontSize = (clientWidth / 10) + 'px';
        $(document).ready(function () {
            (function (doc, win) {
                var docEl = doc.documentElement,
                        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                        recalc = function () {
                            var clientWidth = docEl.clientWidth;
                            docEl.style.fontSize = (clientWidth / 10) + 'px';
                        };

                if (!doc.addEventListener) return;
                win.addEventListener(resizeEvt, recalc, false);
                doc.addEventListener('DOMContentLoaded', recalc, false);
            })(document, window);
        });
    </script>
</head>

<body>
<article class="mui-content saishi-detail">
     <!--<div class="canjia-box">-->
     	<!--<ul class="canjia-box-main">-->
     		<!--<li class="canjia-box-main-fen ">-->
     		    <!--<a class="canjia-xuan xuanzhe" href="#">报名信息</a>-->
     		<!--</li>-->
     		<!--<li class="canjia-box-main-fen">-->
     		    <!--<a class="canjia-xuan" href="canjia-xiaozu.html">小组赛</a>-->
     		<!--</li>-->
     		<!--<li class="canjia-box-main-fen">-->
     		    <!--<a class="canjia-xuan" href="canjia-juesai.html">决赛</a>-->
     		<!--</li>-->
     	<!--</ul>-->
     <!--</div>-->
     <div class="canjia-body">
     	<ul class="canjia-xinxi-zong">
     		<li class="canjia-xinxi-fen">
     			<p class="canjia-xinxi-tit">作品信息</p>
     			<ul class="canjia-xinxi-fen-zong">
     				<li class="canjia-xinxi-fen-fen">
     					<span class="canjia-xinxi-fen-fen-left">作品编号：</span>
     					<span class="canjia-xinxi-fen-fen-right zuopingbianhao"></span>
     				</li>
     				<li class="canjia-xinxi-fen-fen">
     					<span class="canjia-xinxi-fen-fen-left">作品名称：</span>
     					<span class="canjia-xinxi-fen-fen-right zuopingmingcheng"></span>
     				</li>
     				<li class="canjia-xinxi-fen-fen">
     					<span class="canjia-xinxi-fen-fen-left">报名组别：</span>
     					<span class="canjia-xinxi-fen-fen-right baomingzubie"></span>
     				</li>
     				<li class="canjia-xinxi-fen-fen">
     					<span class="canjia-xinxi-fen-fen-left">准确风格：</span>
     					<span class="canjia-xinxi-fen-fen-right baomingstyle"></span>
     				</li>
     			</ul>
     		</li>
            <li class="canjia-xinxi-fen">
     			<p class="canjia-xinxi-tit">报名者信息</p>
     			<ul class="canjia-xinxi-fen-zong">
     				<li class="canjia-xinxi-fen-fen">
     					<span class="canjia-xinxi-fen-fen-left">姓名：</span>
     					<span class="canjia-xinxi-fen-fen-right baomingname"></span>
     				</li>
     				<li class="canjia-xinxi-fen-fen">
     					<span class="canjia-xinxi-fen-fen-left">手机号：</span>
     					<span class="canjia-xinxi-fen-fen-right baomingphone"></span>
     				</li>
     				<li class="canjia-xinxi-fen-fen">
     					<span class="canjia-xinxi-fen-fen-left">微信号：</span>
     					<span class="canjia-xinxi-fen-fen-right baomingweixin"></span>
     				</li>
     				<li class="canjia-xinxi-fen-fen">
     					<span class="canjia-xinxi-fen-fen-left">所在地：</span>
     					<span class="canjia-xinxi-fen-fen-right baomingdizhi"></span>
     				</li>
     				<li class="canjia-xinxi-fen-fen">
     					<span class="canjia-xinxi-fen-fen-left">性别：</span>
     					<span class="canjia-xinxi-fen-fen-right baomingsex"></span>
     				</li>
     			</ul>
     		</li>
            <li class="canjia-xinxi-fen">
     			<p class="canjia-xinxi-tit">选填信息</p>
     			<ul class="canjia-xinxi-fen-zong   xuantiandibu">
     				<li class="canjia-xinxi-fen-fen ideahang">
     					<p class="canjia-xinxi-fen-fen-left">创作的想法或理念</p>
     					<p class="canjia-xinxi-fen-fen-right baomingidea"></p>
     				</li>
     				<li class="canjia-xinxi-fen-fen fuliaohang">
     					<p class="canjia-xinxi-fen-fen-left">辅料简述</p>
     					<p class="canjia-xinxi-fen-fen-right baomingfuliao"></p>
     				</li>
					<li class="canjia-xinxi-fen-fen canshuhang">
						<p class="canjia-xinxi-fen-fen-left">啤酒相关参数</p>
						<p class="canjia-xinxi-fen-fen-right baomingpijiudata"></p>
					</li>
     			</ul>
     		</li>     	      	     	
     	</ul>
     </div>	
</article>
<script type="text/javascript" src="../../js/jquery-2.1.1.min.js"></script>
<script src="../../js/mui.min.js"></script>
<script type="text/javascript" src="../../js/main.js"></script>
<script>
	$(function(){
		var user =   getUserInfo();
		var user_token = user.userToken;
		console.log(user);
		var event = {
			getzubie: function () {
				var data = {
					apiCode: '/User/applyInfo',
					match_id:5,
					user_token:user_token
				};
				http(data, function (responed) {
					console.log(responed);
					var info = responed.data;
					if(info.idea==''){
						$('.ideahang').hide();
					};
					if(info.other_raw==''){
						$('.fuliaohang').hide();
					}
					if(info.relat_data==''){
						$('.canshuhang').hide();
					}
					if(info.idea==''&&info.other_raw==''&&info.relat_data==''){
						var temp = ' <p class="canjia-xinxi-fen-fen-left">您未填写选填信息</p>' ;
						$('.xuantiandibu').append(temp);
					}
					if(info.apply_sex==1){
						$('.baomingsex').text('男');
					}else {
						$('.baomingsex').text('女');
					}
                      $('.zuopingbianhao').text(info.opus_no);
                      $('.zuopingmingcheng').text(info.opus_name);
                      $('.baomingzubie').text(info.group_name);
                      $('.baomingstyle').text(info.style_name);
                      $('.baomingname').text(info.apply_name);
                      $('.baomingdizhi').text(info.apply_address);
                      $('.baomingphone').text(info.apply_phone);
                      $('.baomingweixin').text(info.apply_wx);
                      $('.baomingidea').text(info.idea);
                      $('.baomingfuliao').text(info.other_raw);
                      $('.baomingpijiudata').text(info.relat_data);
					});

			},

		}
		event.getzubie();
	});
</script>
</body>
</html>


